<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no" />
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
		<style>
			body{
				background: #F4F5F6 !important;
			}
			.ul{

			}
			.li{
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 0.75rem;
				padding: 0.75rem;
				margin-bottom: 0.75rem;
				background: #fff;
			}
			.li .l1 span{
				font-size: 0.9rem;
				color: #D43D3D;
			}
			.li .l3{
				color: #999;
			}
			.li div{
				padding-top: 0.215rem;
			}
			.li .r{
				color: #707070
			}
			.li .r{
				color: #707070;
				/*#e51c23  #ff7800*/
			}

		</style>
	</head>
	<body>
		<div class="aui-content">
			<script id="fx-list" type="text/x-dot-template">
				{{ for(var i=0,it=it.data; i < it.length; i++) { }}
				<div class="li">
					<div class="l">
						<div class="l1">金额：<span>{{= it[i].money}} LDT</span></div>
						<div class="l2">地址：<span>{{= it[i].url}}</span></div>
						<div class="l3">时间：<span>{{= it[i].time}}</span></div>
					</div>
					<div class="r">{{= it[i].hide_name}}</div>
				</div>
				{{ } }}
			</script>
			<div class="ul" id="fx-view"></div>
		</div>
	</body>
	<script type="text/javascript" src="../../script/zepto.min.js"></script>
	<script type="text/javascript" src="../../script/doT.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/ffxiang.js"></script>
	<script type="text/javascript">
		apiready = function() {
			var hide = api.pageParam['id'] ? api.pageParam['id'] : '';
			var url = 'api/yaoqing/tixian_lists/hide/'+hide;
			// 下拉刷新
			_shangla(function(ret,err){
				_lists(url, 1, 1);
			})
			// 监听滚动
			api.addEventListener({
				name : 'scrolltobottom',
				extra : {
					threshold : threshold //设置距离底部多少距离时触发，默认值为0，数字类型
				}
			}, function(ret, err) {
				if (heigutgao == 1) {// heigutgao=1开启执行 0停止执行   防止连续滚动，等加载数据之后在进行滚动。
					pagenum += 1
					_lists(url, pagenum);
					// 当数据写入成功  把 heigutgao 设置1
				}
			});
		}
	</script>
</html>
